import request from '@/utils/request'

// 创建信用
export function createCredit(data) {
    return request({
        url: '/pekingFish/credits',
        method: 'post',
        data: data
    })
}

// 更新信用
export function updateCredit(data) {
    return request({
        url: '/pekingFish/credits',
        method: 'put',
        data: data
    })
}

// 获得信用分页
export function getCreditPage(query) {
    return request({
        url: '/pekingFish/credits/pageCredits',
        method: 'get',
        params: query
    })
}
